import request from '../requst'

export default {
    getUserInfoApi(data: { cookie: string }) {
        return request.post<any, any>(`/login/status?timestamp=${new Date().getTime()}`, data)
    },
    // 获取用户最近播放歌曲
    getUserRecentPlaySongApi() {
        return request.get<any, any>(`/record/recent/song?limit=100`)
    },
    // 获取用户最近播放歌单
    getUserRecentPlaySongListApi() {
        return request.get<any, any>(`/record/recent/playlist?limit=100`)
    },
    // 获取用户最近播放专辑
    getUserRecentPlayAlbumApi() {
        return request.get<any, any>(`/record/recent/album?limit=100`)
    },
    getUserRecentPlayVoiceApi() {
        return request.get<any, any>(`/record/recent/voice?limit=100`)
    },
    // 获取用户最近播放视频
    getUserRecentPlayVideoApi() {
        return request.get<any, any>(`/record/recent/video?limit=100`)
    }
}